package com.rainbow.exception

import com.rainbow.emum.ResultEnum

/**
 *rainbow
 */
class CommonException : RuntimeException {

    var code: Int? = null

    constructor(resultEnum: ResultEnum) : super(resultEnum.msg) {
        this.code = resultEnum.code
    }

    constructor(code: Int, msg: String) : super(msg) {
        this.code = code
    }

    constructor(msg: String, cause: Throwable) : super(msg, cause)
}